package com.tfswue.nyf.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 订单实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_order")
public class Order {
    
    @TableId
    private Long id;
    
    private Long price;
    
    private String name;
    
    private Integer num;
    
    private Long userId;
    
    @TableField(exist = false)
    private String orderStatus;
    
    // 关联用户信息，不存储在数据库中
    @TableField(exist = false)
    private User user;
}